import request from "@/utils/request";

/**查询设备类型列表 */
export function listDevModel(params) {
  return request({
    url: "/zk/devModel/list",
    method: "get",
    params: params,
  });
}

/**新增设备类型 */
export function addDevModel(data) {
  return request({
    url: "/zk/devModel",
    method: "post",
    data: data,
  });
}

/**根据num查询设备类型 */
export function getByNum(num) {
  return request({
    url: "/zk/devModel/" + num,
    method: "get",
  });
}

/**修改查询设备类型 */
export function updateDevModel(data) {
  return request({
    url: "/zk/devModel",
    method: "put",
    data: data,
  });
}

/**批量删除设备类型 */
export function delDevModel(nums) {
  return request({
    url: "/zk/devModel/" + nums,
    method: "delete",
  });
}
